package com.ys.servers.versions.data;

import com.ys.servers.common.data.DataEntity;
import io.vertx.codegen.annotations.DataObject;
import io.vertx.core.json.JsonObject;

/**
 * Created by taotao on 2017/5/12.
 * CREATE TABLE `t_version_control` (
 * `id` bigint(15) NOT NULL AUTO_INCREMENT,
 * `title` varchar(25) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '标题',
 * `note` longtext CHARACTER SET utf8mb4 COMMENT '更新描述',
 * `type` int(1) DEFAULT NULL COMMENT '1:ios患者，2:ios医生，3:android患者，4:android医生',
 * `url` varchar(200) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '下载地址',
 * `visitsUrl` varchar(200) NOT NULL,
 * `remindUrl` varchar(200) NOT NULL,
 * `versions` varchar(30) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '版本号',
 * `life_cycle_status` int(1) DEFAULT NULL,
 * `create_time` datetime DEFAULT NULL,
 * `create_user` bigint(15) DEFAULT NULL,
 * `send_time` datetime DEFAULT NULL COMMENT '发布日期',
 * `send_user` bigint(15) DEFAULT NULL COMMENT '发布人',
 * `status` int(1) DEFAULT '0' COMMENT '0:未发送；1：已发送；',
 * PRIMARY KEY (`id`)
 */

public class AppVersionsData extends DataEntity {

    private String versions;

    private AppVersionsState appVersionState;

    private String note;

    private AppType appType;

    private String url;

    private String remindUrl;

    private String visitsUrl;

    public AppVersionsData(JsonObject json) {
       // super(json);
    }
    public JsonObject toJson(){
        return new JsonObject();
    }
    public AppVersionsData(){

    }

    public String getVisitsUrl() {
        return visitsUrl;
    }

    public AppVersionsData setVisitsUrl(String visitsUrl) {
        this.visitsUrl = visitsUrl;
        return this;
    }

    //是否需要强制更新
    private boolean forceUpdate;

    private boolean hotUpdate;

    private String hotUpdateUrl;

    private String deploymentKey;


    public String getVersions() {
        return versions;
    }

    public AppVersionsData setVersions(String versions) {
        this.versions = versions;
        return this;
    }

    public AppVersionsState getAppVersionState() {
        return appVersionState;
    }

    public AppVersionsData setAppVersionState(AppVersionsState appVersionState) {
        this.appVersionState = appVersionState;
        return this;
    }

    public String getNote() {
        return note;
    }

    public AppVersionsData setNote(String note) {
        this.note = note;
        return this;
    }

    public AppType getAppType() {
        return appType;
    }

    public AppVersionsData setAppType(AppType appType) {
        this.appType = appType;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public AppVersionsData setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getRemindUrl() {
        return remindUrl;
    }

    public AppVersionsData setRemindUrl(String remindUrl) {
        this.remindUrl = remindUrl;
        return this;
    }

    public boolean isForceUpdate() {
        return forceUpdate;
    }

    public AppVersionsData setForceUpdate(boolean forceUpdate) {
        this.forceUpdate = forceUpdate;
        return this;
    }

    public boolean isHotUpdate() {
        return hotUpdate;
    }

    public AppVersionsData setHotUpdate(boolean hotUpdate) {
        this.hotUpdate = hotUpdate;
        return this;
    }

    public String getHotUpdateUrl() {
        return hotUpdateUrl;
    }

    public AppVersionsData setHotUpdateUrl(String hotUpdateUrl) {
        this.hotUpdateUrl = hotUpdateUrl;
        return this;
    }

    public String getDeploymentKey() {
        return deploymentKey;
    }

    public AppVersionsData setDeploymentKey(String deploymentKey) {
        this.deploymentKey = deploymentKey;
        return this;
    }
}
